package br.inf.solutions.apresentacoes.ssp.model.enums;

public enum BloodType {

	AP("A+"),
	AN("A-"),
	BP("B+"),
	BN("B-"),
	ABP("AB+"),
	ABN("AB-"),
	OP("O+"),
	ON("O-");
	
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private BloodType(String name){
		this.name = name;
	}
	
	public static BloodType getBloodTypeById(Integer id) {  
        return BloodType.values()[id];  
      } 
	
	@Override
	public String toString() {
		return this.name;
	}
	
}
